package org.cuit.echo.seon.combat.imageload.proxy;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-04
 */
public class RealImage implements Image {
    String filename;

    protected RealImage(String filename) {
        this.filename = filename;
        loadFromDisk();
    }

    private void loadFromDisk() {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Image loaded success");
    }

    @Override
    public void display() {
        System.out.println("Image has been displayed");
    }
}
